/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.dao;

import java.util.List;
import java.util.Map;

import com.kaaction.common.persistence.CrudDao;
import com.kaaction.common.persistence.annotation.MyBatisDao;
import com.kaaction.modules.mer.entity.Spu;
import com.kaaction.modules.sys.entity.Dict;

/**
 * 商品分类DAO接口
 * @author huanghaiming
 * @version 2017-05-19
 */
@MyBatisDao
public interface SpuDao extends CrudDao<Spu> {

	void updateUpOrDown(Spu spu);

	void updateUpOrDownHome(Spu spu);

	List<Map<String, Object>> spuClassifyDetail(Map<String, Object> map);

	Map<String, Object> selectProductDetail(String id);

	List<Map<String, Object>> selecProductClassify(Map<String, Object> map);

	List<Dict> getSpu();

	List<Map<String, Object>> selSpuName(List<String> asList);

	List<Map<String, Object>> spuTagShow(Map<String, Object> map);

	List<Map<String, Object>> selSup(String id);

	List<Map<String, Object>> selectHome();

	int spuTagShowCount(Map<String, Object> map);

}